package com.irate.fragment;

import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.irate.activity.R;

public class HomeFragment extends Fragment{
	
	protected TextView title;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		return inflater.inflate(R.layout.home_layout, null);
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		
		init();
		execute();
	}

	private void init() {
		title= (TextView) getActivity().findViewById(R.id.site_title);
	}

	private void execute() {
		Typeface font = Typeface.createFromAsset(getResources().getAssets(), "vijaya.ttf");
		title.setTypeface(font);
	}
}
